#include "mainwindow.h"
#include <QTextEdit>
#include <QMdiSubWindow>

MainWindow::MainWindow()
{
    setupUi(this);
}

void
MainWindow::on_actionNew_triggered()
{
    QTextEdit *e = new QTextEdit(this);
    QMdiSubWindow *sub = new QMdiSubWindow(this);
    sub->setWidget(e);
    mdiArea->addSubWindow(sub);
    sub->show();
}

